<template>
  <el-table
    v-bind="$attrs"
    :data="data"
    :height="height"
    :row-key="rowKey"
    ref="tableRef"
    @selection-change="selectionChange"
    @select="select"
    @select-all="selectAll"
  >
    <slot name="tableConfigListBefore"></slot>
    <template
      v-for="(item,index) in tableConfigList || []"
    >
      <TableItem
        v-if="!(item.hidden || false)"
        :key="'table' + index"
        :item="item"
        :table-vm="self"
        :tableData="data"
      ></TableItem>
    </template>
    <template #append>
      <slot name="append"></slot>
    </template>
    <template #empty>
      <slot name="empty"></slot>
    </template>
    <slot></slot>
  </el-table>
</template>

<script lang="ts">
import DynamicTable from "../DynamicTable3/index.vue";

export default {
  name: "PermissionsDyTable",
  extends: DynamicTable,
  props: {

  },
}
</script>

<style lang="scss" scoped>

</style>
